﻿using NahidaProject4CSharp.UnitTest.NahidaUnitTest;
using System.Reflection;

namespace NahidaProject4CSharp.Generic.FunctionalTest
{

	public class TestClass
	{

		[Test]
		public void BloomFilterTest()
		{
			var bloomFilter = new BloomFilter(1000, 5);

			bloomFilter.Add("apple");
			bloomFilter.Add("banana");

			Assert.IsTrue(bloomFilter.Contains("apple"));
			Assert.IsTrue(bloomFilter.Contains("banana"));
			Assert.IsTrue(bloomFilter.Contains("cherry"));
		}

		[Test]
		public void LoggerTest()
		{
			var logger = Logger.Instance;

			logger.Debug("This is a debug message");
			logger.Information("This is a message");
			logger.Warning("This is a warning message");
			logger.Error("This is a error message");
		}
	}

	
	internal class Program
	{
		static void Main(string[] args)
		{
			var assemblyRunner = new TestRunner();
			assemblyRunner.RunTests(Assembly.GetExecutingAssembly());
			assemblyRunner.PrintResults();
		}
	}
}
